package my;

public class Counter {
	private int count;
	private String name;
	private static int counts;	//static member can't be javabean's property
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public int getCount() {
		System.out.println("getCount");
		return count++;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public static int getCounts() {
		return counts++;
	}
	public static void setCounts(int counts) {
		Counter.counts = counts;
	}

	
}
